package com.example.knowman.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.sql.Timestamp;

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("\"ARCHKNOW\".\"knowShare\"")
public class knowShare extends Model<knowShare>{

    private static final long serialVersionUID = 1L;


//    @TableId(value = "recId")
    @TableField("\"recId\"")
    private Integer recId;

    @TableField("\"knowId\"")
    private Integer knowId;


    @TableField("\"myStaffCode\"")
    private String myStaffCode;

    @TableField("\"knowTitle\"")
    private String knowTitle;

    @TableField("\"knowCateId\"")
    private Integer knowCateId;

    @TableField("\"archDeptName\"")
    private String archDeptName;

    @TableField("\"staffCode4Post\"")
    private String staffCode4Post;


    @TableField("\"readState\"")
    private Integer readState;

    @TableField("\"praise\"")
    private Integer praise;

    @TableField("\"comment\"")
    private String comment;

    @TableField("\"createtime\"")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createtime;



}
